<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<title>添加城市</title>
	{$h->import('static/css/layui.css')}
	{$h->import('static/css/HyqPublic.css')}
	<style type="text/css">
		body{
			margin: 0;
			color: rgba(0,0,0,.65);
			font-size: 14px;
		}
	</style>
</head>
<body>
	<div class="public_Pop_container">
		<h3 class="public_PopTitle">新增城市信息</h3>
		<div class="public_PopTips_container">
			<svg t="1622540008125" class="icon" viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4204" width="14" height="14"><path d="M595.138 889.173c16.52 0 29.914 13.393 29.914 29.913 0 16.521-13.393 29.914-29.914 29.914H436.563c-16.52 0-29.914-13.393-29.914-29.914 0-16.52 13.393-29.913 29.914-29.913h158.575z m-494.224-66.73C84.393 822.442 71 809.05 71 792.528s13.393-29.914 29.914-29.914h98.828V474.698c0-165.138 126.17-300.806 287.37-315.869l0.001-58.942C487.113 83.38 500.494 70 517 70s29.887 13.38 29.887 29.887l0.001 58.942c161.2 15.063 287.37 150.731 287.37 315.869l-0.001 287.917h98.83c16.52 0 29.913 13.393 29.913 29.914 0 16.52-13.393 29.913-29.914 29.913H100.914z" fill="#1990ff" p-id="4205"></path></svg>
			<p>配置过程较为复杂，可<a href="#">联系客服</a>提供人工配置服务</p>
		</div>
		<div class="public_PopMain_container layui-form">
			<div class="public_form_conainer public_select_container">
				<span class="public_formTitle public_formTitleImportant" style="width: 80px;">城市：</span>
				<div class="public_select_content">
					<select name="stores_city" lay-verify="required" lay-search="">
						<option value="">直接选择或搜索选择</option>
						{loop $city_list as $citysone}
							<option value="{$citysone}" {if $stores->stores_city == $citysone} selected {/if}>{$citysone}</option>
						{/loop}
					</select>
				</div>
			</div>
			<div class="public_form_conainer public_select_container">
				<span class="public_formTitle public_formTitleImportant" style="width: 80px;">拉群活码：</span>
				<div class="public_select_content">
					<select name="contact_id" lay-verify="required">
						<option value=""></option>
						{loop $contactWay as $way}
						<option value="{$way['id']}" {if $stores->contact_id == $way["id"]} selected {/if}>{$way["name"]}</option>
						{/loop}
					</select>
				</div>
			</div>
			<div class="public_form_conainer public_switch_container">
				<span class="public_formTitle public_formTitleImportant" style="width: 80px;">开启状态：</span>
				<div class="public_switch_content">
					<input type="checkbox" name="status" lay-skin="switch" {if $stores->status == 1} checked {/if}>
				</div>
			</div>
			<div class="public_formSubmit_conainer">
				<button class="layui-btn layui-btn-normal" lay-submit lay-filter="formDemo">确定</button>
			</div>
		</div>
	</div>
	<script src="/cdn/jquery.min.js"></script>
	<script src="/layui/layui.all.js"></script>
	<script src="/js/ajax.js"></script>
	<script>

	//表单
	layui.use('form', function(){
		var form = layui.form;

	  	//监听提交
	  	form.on('submit(formDemo)', function(data){
			myAjaxPost(false, true, '', data.field, function (resp) {
				layer.msg(resp.msg);
		        if(resp.status == "success"){
		            setTimeout(function(){
		                parent.location.reload();
		            },1000);
		        }
			})
	  	});
	});
	
	</script>
	
	<script type="text/javascript">
		
	</script>
</body>
</html>